package com.direct.domian;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 司机
 * 
 * @author Administrator
 * 
 */
public class Driver {
	
	public static final Integer ONJOB = 1;
	public static final Integer DISJOB = 2;
	
	private String id;
	// 当前驾驶车辆
	private Truck truck;
	// 所属配送点
	private Distribution distribution;
	private String name;
	private String gender;
	private String idCard;
	private Integer age;
	private Integer driverAge;
	// 驾驶证号
	private String lience;
	// 驾驶证类型
	private String type;
	private String phone;
	private String address;
	// 入职时间
	private Date hiredate;
	// 状态(在职与否)1在职,2离职
	private Integer state;
	// 图片所在路径
	private String img;
	// 司机所拥有的交接单
	private Set transfers = new HashSet(0);

	public Driver() {
	}

	public Driver(String id) {
		this.id = id;
	}

	public Driver(String id, Truck truck, Distribution distribution,
			String name, String gender, String idCard, Integer age,
			Integer driverAge, String lience, String type, String phone,
			String address, Date hiredate, Integer state, String img,
			Set transfers) {
		this.id = id;
		this.truck = truck;
		this.distribution = distribution;
		this.name = name;
		this.gender = gender;
		this.idCard = idCard;
		this.age = age;
		this.driverAge = driverAge;
		this.lience = lience;
		this.type = type;
		this.phone = phone;
		this.address = address;
		this.hiredate = hiredate;
		this.state = state;
		this.img = img;
		this.transfers = transfers;
	}

	public String getAddress() {
		return address;
	}

	public Integer getAge() {
		return age;
	}

	public Distribution getDistribution() {
		return distribution;
	}

	public Integer getDriverAge() {
		return driverAge;
	}

	public String getGender() {
		return gender;
	}

	public Date getHiredate() {
		return hiredate;
	}

	public String getId() {
		return id;
	}

	public String getIdCard() {
		return idCard;
	}

	public String getImg() {
		return img;
	}

	public String getLience() {
		return lience;
	}

	public String getName() {
		return name;
	}

	public String getPhone() {
		return phone;
	}

	public Integer getState() {
		return state;
	}

	public Set getTransfers() {
		return transfers;
	}

	public Truck getTruck() {
		return truck;
	}

	public String getType() {
		return type;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public void setDistribution(Distribution distribution) {
		this.distribution = distribution;
	}

	public void setDriverAge(Integer driverAge) {
		this.driverAge = driverAge;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public void setLience(String lience) {
		this.lience = lience;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public void setTransfers(Set transfers) {
		this.transfers = transfers;
	}

	public void setTruck(Truck truck) {
		this.truck = truck;
	}

	public void setType(String type) {
		this.type = type;
	}

}